﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ZhimeiSoft.ShowCall.Server.BLL.Interface;
using System.Reflection;

namespace ZhimeiSoft.ShowCall.Server.Factory
{
    public class BllFactory
    {
        private static readonly string path = @"ZhimeiSoft.ShowCall.Server.BLL";

        private BllFactory() { }

        public static ICustomerBLL CreateCustomerBll()
        {
            string className = path + ".CustomerBLL";
            return (ICustomerBLL)Assembly.Load(path).CreateInstance(className);
        }

        public static ICustomerServiceItemBLL CreateCustomerServiceItemBll()
        {
            string className = path + ".CustomerServiceItemBLL";
            return (ICustomerServiceItemBLL)Assembly.Load(path).CreateInstance(className);
        }
    }
}
